﻿using System;
using System.Linq;
using System.Text;
using SqlSugar;

namespace AllServer.Core.Entity;
    ///<summary>
    ///用户退款记录
    ///</summary>
    [SugarTable("TMemberRefundRecord")]
    public partial class TMemberRefundRecord
    {
        /// <summary>
        /// 退款记录id
        /// </summary>           
        [SugarColumn(IsPrimaryKey=true,IsIdentity=true,ColumnName="Id")]
        public int Id {get;set;}
        /// <summary>
        /// 产品编号
        /// </summary>           
        [SugarColumn(ColumnName="ProductId")]
        public int ProductId {get;set;}
        /// <summary>
        /// 用户码
        /// </summary>           
        [SugarColumn(ColumnName="UserCode")]
        public string UserCode {get;set;}
        /// <summary>
        /// 支付订单号
        /// </summary>           
        [SugarColumn(ColumnName="OrderNo")]
        public string OrderNo {get;set;}
        /// <summary>
        /// 退款订单号
        /// </summary>           
        [SugarColumn(ColumnName="RefundNo")]
        public string RefundNo {get;set;}
        /// <summary>
        /// 退款方式 1 支付宝 2 微信 
        /// </summary>           
        [SugarColumn(ColumnName="RefundType")]
        public int RefundType {get;set;}
        /// <summary>
        /// 退款状态 0 退款中 1退款成功 2待审核 3审核通过 4审核失败 5退款失败
        /// </summary>           
        [SugarColumn(ColumnName="State")]
        public int State {get;set;}
        /// <summary>
        /// 失败原因
        /// </summary>           
        [SugarColumn(ColumnName="FailReson")]
        public string FailReson {get;set;}
        /// <summary>
        /// 备注
        /// </summary>           
        [SugarColumn(ColumnName="Remarks")]
        public string Remarks {get;set;}
        /// <summary>
        /// 附件url
        /// </summary>           
        [SugarColumn(ColumnName="Url")]
        public string Url {get;set;}
        /// <summary>
        /// 退款金额
        /// </summary>           
        [SugarColumn(ColumnName="RefundMoney")]
        public decimal RefundMoney {get;set;}
        /// <summary>
        /// 创建时间
        /// </summary>           
        [SugarColumn(ColumnName="CreateTime")]
        public DateTime CreateTime {get;set;}
        /// <summary>
        /// 修改时间
        /// </summary>           
        [SugarColumn(ColumnName="UpdateTime")]
        public DateTime? UpdateTime {get;set;}
        /// <summary>
        /// 订单总金额
        /// </summary>           
        [SugarColumn(ColumnName="TotalMoney")]
        public decimal TotalMoney {get;set;}
        /// <summary>
        /// 设置的vip结束时间
        /// </summary>           
        [SugarColumn(ColumnName="VipEndTime")]
        public DateTime? VipEndTime {get;set;}
        /// <summary>
        /// 产品名称
        /// </summary>           
        [SugarColumn(ColumnName="ProductName")]
        public string ProductName {get;set;}
        /// <summary>
        /// 微信uid
        /// </summary>           
        [SugarColumn(ColumnName="Uid")]
        public string Uid {get;set;}
        /// <summary>
        /// 支付账号
        /// </summary>           
        [SugarColumn(ColumnName="PayAccount")]
        public string PayAccount {get;set;}
        /// <summary>
        /// 响应体
        /// </summary>           
        [SugarColumn(ColumnName="ResponseBody")]
        public string ResponseBody {get;set;}
        /// <summary>
        /// 渠道号
        /// </summary>           
        [SugarColumn(ColumnName="ChannelNo")]
        public int? ChannelNo {get;set;}
        /// <summary>
        /// 
        /// </summary>           
        [SugarColumn(ColumnName="ForceAdd")]
        public int ForceAdd {get;set;}
        /// <summary>
        /// 财务退款备注
        /// </summary>           
        [SugarColumn(ColumnName="RemarksCw")]
        public string RemarksCw {get;set;}
        /// <summary>
        /// 迁移主键
        /// </summary>           
        [SugarColumn(ColumnName="RawId")]
        public int? RawId {get;set;}
        /// <summary>
        /// 最后更新时间，用于同于更新判断
        /// </summary>           
        [SugarColumn(ColumnName="SyncUpdateTime")]
        public DateTime? SyncUpdateTime {get;set;}
    }
